package cn.sciento.farm.devicemanager.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 水肥通道管理
 * </p>
 *
 * @author wumu
 * @since 2019-09-07
 */
public class DevFertilizerChannel extends Model<DevFertilizerChannel> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 编号
     */
    private Integer channelNo;

    /**
     * 水肥机
     */
    private String eui;

    /**
     * 增压泵运行状态
     */
    private Integer boosterPumpStatus;

    /**
     * 施肥阀状态
     */
    private Integer fertilizerValveStatus;

    /**
     * 搅拌电机状态
     */
    private Integer stirMotorStatus;

    private Float entryEc;

    private Float entryPh;

    private Float exitEc;

    private Float exitPh;

    /**
     * 瞬时流量
     */
    private Float instantFlow;

    private Double totalFlow;

    private Float pressure;

    private Integer status;

    private String tenantId;

    /**
     * 施肥比例
     */
    private Float fertilizerRatio;

    /**
     * 施肥时间
     */
    private Integer fertilizerTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getChannelNo() {
        return channelNo;
    }

    public void setChannelNo(Integer channelNo) {
        this.channelNo = channelNo;
    }

    public String getEui() {
        return eui;
    }

    public void setEui(String eui) {
        this.eui = eui;
    }

    public Integer getBoosterPumpStatus() {
        return boosterPumpStatus;
    }

    public void setBoosterPumpStatus(Integer boosterPumpStatus) {
        this.boosterPumpStatus = boosterPumpStatus;
    }

    public Integer getFertilizerValveStatus() {
        return fertilizerValveStatus;
    }

    public void setFertilizerValveStatus(Integer fertilizerValveStatus) {
        this.fertilizerValveStatus = fertilizerValveStatus;
    }

    public Integer getStirMotorStatus() {
        return stirMotorStatus;
    }

    public void setStirMotorStatus(Integer stirMotorStatus) {
        this.stirMotorStatus = stirMotorStatus;
    }

    public Float getEntryEc() {
        return entryEc;
    }

    public void setEntryEc(Float entryEc) {
        this.entryEc = entryEc;
    }

    public Float getEntryPh() {
        return entryPh;
    }

    public void setEntryPh(Float entryPh) {
        this.entryPh = entryPh;
    }

    public Float getExitEc() {
        return exitEc;
    }

    public void setExitEc(Float exitEc) {
        this.exitEc = exitEc;
    }

    public Float getExitPh() {
        return exitPh;
    }

    public void setExitPh(Float exitPh) {
        this.exitPh = exitPh;
    }

    public Float getInstantFlow() {
        return instantFlow;
    }

    public void setInstantFlow(Float instantFlow) {
        this.instantFlow = instantFlow;
    }

    public Double getTotalFlow() {
        return totalFlow;
    }

    public void setTotalFlow(Double totalFlow) {
        this.totalFlow = totalFlow;
    }

    public Float getPressure() {
        return pressure;
    }

    public void setPressure(Float pressure) {
        this.pressure = pressure;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public Float getFertilizerRatio() {
        return fertilizerRatio;
    }

    public void setFertilizerRatio(Float fertilizerRatio) {
        this.fertilizerRatio = fertilizerRatio;
    }

    public Integer getFertilizerTime() {
        return fertilizerTime;
    }

    public void setFertilizerTime(Integer fertilizerTime) {
        this.fertilizerTime = fertilizerTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DevFertilizerChannel{" +
        "id=" + id +
        ", channelNo=" + channelNo +
        ", eui=" + eui +
        ", boosterPumpStatus=" + boosterPumpStatus +
        ", fertilizerValveStatus=" + fertilizerValveStatus +
        ", stirMotorStatus=" + stirMotorStatus +
        ", entryEc=" + entryEc +
        ", entryPh=" + entryPh +
        ", exitEc=" + exitEc +
        ", exitPh=" + exitPh +
        ", instantFlow=" + instantFlow +
        ", totalFlow=" + totalFlow +
        ", pressure=" + pressure +
        ", status=" + status +
        ", tenantId=" + tenantId +
        ", fertilizerRatio=" + fertilizerRatio +
        ", fertilizerTime=" + fertilizerTime +
        "}";
    }
}
